package com.example.homelicaisystem.services;

import com.example.homelicaisystem.entity.DTO.InvestmentDTO;
import com.example.homelicaisystem.entity.DTO.InvestmentDetailDTO;
import com.example.homelicaisystem.entity.Investment;
import com.example.homelicaisystem.entity.InvestmentDetail;
import com.example.homelicaisystem.entity.SelectResult;
import com.github.pagehelper.Page;

import java.util.List;

public interface InvestmentService {
    Page<Investment> getList(InvestmentDTO data);

    Investment buy(InvestmentDetail data);

    Investment sell(InvestmentDetail data);

    List<SelectResult> selectInvestmentType();

    void cancelBuy(InvestmentDetail data);

    List<SelectResult> selectInvestment(int investmentType);

    void cancelSell(InvestmentDetail data);
}
